import Generator from 'yeoman-generator'
import path from 'node:path'
import fs from 'node:fs'
import { traverse } from './utils'


export default class extends Generator {
  constructor() {
    super()
    
  }

  async question() {
    const answers = await this.prompt([
      {
        name:'title',
        type:'input',
        message:'',
        default:'',
        validate(input, answers) {
          return true 
        },
      }
    ])
  }

  write() {
    const tpl = this.templatePath('')
    const dest = this.destinationPath('')
  
    this.fs.write(dest, '')
    this.fs.copyTpl(tpl, dest, {})
  }

}
